84% empty-blog

Code Review | Empty Blog

WordPress plugin Empty Blog scored 84% from 54 tests.

About plugin

  • Plugin page: empty-blog
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2011
  • Latest release: Dec 14, 2019
  • Number of updates: 29
  • Update frequency: every 100.2 days
  • Top authors: dllh (68.97%)BandonRandon (34.48%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 4,665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.11ms] Passed 4 tests

An overview of server-side resources used by Empty Blog
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.36 ▼9.83
Dashboard /wp-admin3.31 ▲0.0053.44 ▼26.25
Posts /wp-admin/edit.php3.36 ▲0.0065.28 ▲11.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.20 ▼1.31
Media Library /wp-admin/upload.php3.23 ▲0.0039.35 ▲0.96
Empty Blog /wp-admin/tools.php?page=empty-blog-id3.2032.92

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Empty Blog
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.74 ▲0.431.64 ▼3.7639.57 ▼8.97
Dashboard /wp-admin2,210 ▲44.85 ▼1.00113.47 ▼0.2942.85 ▲0.36
Posts /wp-admin/edit.php2,072 ▼172.06 ▲0.0241.04 ▲1.0337.70 ▲3.60
Add New Post /wp-admin/post-new.php1,538 ▲423.16 ▼0.02599.66 ▼1.8763.43 ▲4.34
Media Library /wp-admin/upload.php1,392 ▲44.15 ▼0.10101.54 ▼8.2342.95 ▼4.52
Empty Blog /wp-admin/tools.php?page=empty-blog-id8692.0425.5440.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • 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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/empty-blog/empty-blog.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === empty-blog === )
You can look at the official readme.txt

empty-blog/empty-blog.php Passed 13 tests

Analyzing the main PHP file in "Empty Blog" version 0.9
70 characters long description:
Empty your blog of posts (you pick which types), tags, and categories.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin149 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12332126
CSS12018
JavaScript1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected