84% simperium

Code Review | Simperium

WordPress plugin Simperium scored84%from 54 tests.

About plugin

  • Plugin page: simperium
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: May 18, 2014
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: akeda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /730 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.50ms] Passed 4 tests

An overview of server-side resources used by Simperium
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0849.75 ▲7.07
Dashboard /wp-admin3.44 ▲0.1473.73 ▲17.89
Posts /wp-admin/edit.php3.48 ▲0.1248.85 ▼11.87
Add New Post /wp-admin/post-new.php5.94 ▲0.0690.33 ▼6.56
Media Library /wp-admin/upload.php3.29 ▲0.0640.81 ▲1.36

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Simperium
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.221.80 ▲0.1143.86 ▲1.70
Dashboard /wp-admin2,192 ▲245.59 ▲0.0690.46 ▼8.6142.22 ▲3.50
Posts /wp-admin/edit.php2,103 ▼01.99 ▲0.0039.80 ▼0.3636.45 ▼1.51
Add New Post /wp-admin/post-new.php1,534 ▼123.04 ▼2.17643.58 ▲19.3958.38 ▼4.13
Media Library /wp-admin/upload.php1,397 ▼64.16 ▼0.13100.09 ▼1.7641.87 ▼1.93

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/simperium/simperium.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: post-processing, logger, event, data, log...

simperium/simperium.php 92% from 13 tests

"Simperium" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected859 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP10130304514
Bourne Again Shell24138152
Markdown343094
Bourne Shell112647
YAML15028
XML13024

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods30
▷ Static methods723.33%
▷ Public methods2686.67%
▷ Protected methods13.33%
▷ Private methods310.00%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin