84% simplifieswp

Code Review | SimplifiesWP

WordPress plugin SimplifiesWP scored84%from 54 tests.

About plugin

  • Plugin page: simplifieswp
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Sep 11, 2013
  • Latest release: Sep 12, 2013
  • Number of updates: 14
  • Update frequency: every 0.4 days
  • Top authors: eirsyl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /656 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.56ms] Passed 4 tests

A check of server-side resources used by SimplifiesWP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.59 ▲3.30
Dashboard /wp-admin3.50 ▲0.16495.79 ▲435.74
Posts /wp-admin/edit.php3.45 ▲0.1044.62 ▼4.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.82 ▼13.56
Media Library /wp-admin/upload.php3.27 ▲0.0436.51 ▲4.77
Login Image /wp-admin/admin.php?page=simplifieswp/hf_settings_logon_logo_page.php3.2330.97
About /wp-admin/admin.php?page=simplifieswp/hf_about_page.php3.2332.67
General /wp-admin/admin.php?page=simplifieswp/hf_general_page.php3.39478.63

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
logo_url
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

SimplifiesWP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,409 ▼34814.30 ▼0.071.95 ▲0.0842.32 ▼1.96
Dashboard /wp-admin1,811 ▼3745.48 ▼0.5285.97 ▼23.5970.29 ▲27.18
Posts /wp-admin/edit.php2,063 ▼262.25 ▲0.2533.15 ▼5.0030.92 ▼2.87
Add New Post /wp-admin/post-new.php1,506 ▼2723.17 ▲0.21731.72 ▲124.3260.03 ▲8.84
Media Library /wp-admin/upload.php1,361 ▼244.16 ▼0.01108.54 ▲11.7442.46 ▲2.04
Login Image /wp-admin/admin.php?page=simplifieswp/hf_settings_logon_logo_page.php8021.8029.8321.95
About /wp-admin/admin.php?page=simplifieswp/hf_about_page.php7921.8129.5421.19
General /wp-admin/admin.php?page=simplifieswp/hf_general_page.php7501.7823.1624.44

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplifieswp/functions/apply_menu.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplifieswp/functions/change_logon_logo.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simplifieswp/functions/apply_system_info.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplifieswp/functions/remove_trash.php:9
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplifieswp/hf.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplifieswp/functions/apply_media_library.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/simplifieswp/hf_general_page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/simplifieswp/hf_settings_logon_logo_page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simplifieswp/hf.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/simplifieswp/hf_about_page.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: cleaning

simplifieswp/hf.php 92% from 13 tests

"SimplifiesWP" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simplifieswp.php" instead of "hf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin338 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP117576291
XML50047

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png3.13KB0.42KB▼ 86.52%
images/logon_logo.png2.42KB2.45KB0.00%