84% wp-exocep

Code Review | WP Exocep

WordPress plugin WP Exocep scored84%from 54 tests.

About plugin

  • Plugin page: wp-exocep
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.5
  • WordPress version: 6.3.1
  • First release: Oct 4, 2017
  • Latest release: Oct 28, 2020
  • Number of updates: 25
  • Update frequency: every 44.8 days
  • Top authors: stefancosquer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼10.87ms] Passed 4 tests

An overview of server-side resources used by WP Exocep
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0543.38 ▲0.63
Dashboard /wp-admin3.40 ▲0.0150.85 ▼16.59
Posts /wp-admin/edit.php3.52 ▲0.1251.58 ▼5.55
Add New Post /wp-admin/post-new.php5.98 ▲0.0585.81 ▼21.98
Media Library /wp-admin/upload.php3.33 ▲0.0538.88 ▲0.86

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Exocep
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.40 ▲0.191.71 ▼0.0543.71 ▼0.02
Dashboard /wp-admin2,210 ▲365.65 ▼0.0286.93 ▼4.7441.63 ▲1.90
Posts /wp-admin/edit.php2,112 ▲91.95 ▼0.0935.67 ▼5.5834.74 ▼1.85
Add New Post /wp-admin/post-new.php1,548 ▲2022.97 ▼0.27661.02 ▲47.0853.81 ▼8.92
Media Library /wp-admin/upload.php1,409 ▲94.20 ▼0.01100.92 ▲0.3442.22 ▼1.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-exocep/wp-exocep.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: exocep plugin, wp exocep, exocep

wp-exocep/wp-exocep.php Passed 13 tests

The main file in "WP Exocep" v. 1.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
26 characters long description:
Exocep integration plugin.

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
Everything looks great! No dangerous files found in this plugin1,383 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS411024912
JavaScript32410221
PHP14532211
PO File113039

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions14
▷ Named functions1285.71%
▷ Anonymous functions214.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/layers.png0.68KB1.05KB0.00%
css/images/marker-icon-2x.png2.53KB2.52KB0.39%
css/images/layers-2x.png1.23KB1.67KB0.00%
css/images/marker-shadow.png0.60KB1.16KB0.00%
css/images/marker-icon.png1.43KB1.55KB0.00%