84% wp-blog-cypher

Code Review | WP Blog Cypher

WordPress plugin WP Blog Cypher scored84%from 54 tests.

About plugin

  • Plugin page: wp-blog-cypher
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4
  • WordPress version: 6.3.1
  • First release: Sep 7, 2014
  • Latest release: Jul 19, 2020
  • Number of updates: 10
  • Update frequency: every 214.3 days
  • Top authors: topher1kenobe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,323 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WP Blog Cypher
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.12 ▼1.65
Dashboard /wp-admin3.33 ▼0.0248.57 ▼17.54
Posts /wp-admin/edit.php3.38 ▲0.0255.60 ▲1.63
Add New Post /wp-admin/post-new.php5.91 ▲0.02115.30 ▲14.57
Media Library /wp-admin/upload.php3.25 ▲0.0235.94 ▼2.57

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Blog Cypher
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▼0.031.54 ▼0.0638.87 ▼5.18
Dashboard /wp-admin2,195 ▲185.62 ▲0.0490.03 ▼8.9038.03 ▼3.80
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0640.43 ▲1.1837.03 ▲2.33
Add New Post /wp-admin/post-new.php1,526 ▼523.45 ▲0.18677.26 ▼3.7258.46 ▼3.42
Media Library /wp-admin/upload.php1,394 ▼34.18 ▲0.0199.52 ▲2.3545.38 ▲2.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-blog-cypher/wp-blog-cypher.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The form, with an example cypher) image required
You can take inspiration from this readme.txt

wp-blog-cypher/wp-blog-cypher.php Passed 13 tests

This is the main PHP file of "WP Blog Cypher" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
Creates a blog cypher, similar to an Ottendorf cypher

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
There were no executable files found in this plugin115 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP174105115

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods222.22%
▷ Protected methods00.00%
▷ Private methods777.78%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin