89% framework-mobilede

Code Review | Framework Mobilede

WordPress plugin Framework Mobilede scored89%from 54 tests.

About plugin

  • Plugin page: framework-mobilede
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 6, 2020
  • Latest release: Jul 6, 2023
  • Number of updates: 9
  • Update frequency: every 128.4 days
  • Top authors: domisiding (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,413 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.98ms] Passed 4 tests

Server-side resources used by Framework Mobilede
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.80 ▲1.00
Dashboard /wp-admin3.33 ▼0.0248.58 ▼15.46
Posts /wp-admin/edit.php3.38 ▲0.0249.03 ▼3.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.63 ▼18.37
Media Library /wp-admin/upload.php3.25 ▲0.0238.61 ▲1.23

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
mobileframe_color
mobileframe_styles

Browser metrics Passed 4 tests

Checking browser requirements for Framework Mobilede
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7313.54 ▼0.841.75 ▼0.5939.54 ▼0.59
Dashboard /wp-admin2,235 ▲325.87 ▲1.0099.02 ▼7.5681.93 ▲40.48
Posts /wp-admin/edit.php2,117 ▲172.02 ▼0.1537.28 ▼1.9035.55 ▲0.26
Add New Post /wp-admin/post-new.php1,546 ▲1523.12 ▼0.10757.32 ▲80.6853.80 ▼8.35
Media Library /wp-admin/upload.php1,417 ▲174.23 ▲0.03101.49 ▼6.5588.45 ▲39.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • mobileframe_color
    • mobileframe_styles
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: motorcycle, cars, mobilede, fahrzeuge, framework

framework-mobilede/mobileframe_main_class.php 85% from 13 tests

The main PHP script in "Framework Mobilede" version 1.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("framework-mobilede.php" instead of "mobileframe_main_class.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin263 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21720126
CSS118387
PO File1101150

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.29KB0.29KB0.00%