84% yablog

Code Review | YaBlog

WordPress plugin YaBlog scored 84% from 54 tests.

About plugin

  • Plugin page: yablog
  • Plugin version: 1.6.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: May 29, 2015
  • Latest release: Jun 22, 2015
  • Number of updates: 11
  • Update frequency: every 2.3 days
  • Top authors: anton.paramonov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,201 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by YaBlog
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.88 ▲3.66
Dashboard /wp-admin3.34 ▲0.0445.04 ▼6.91
Posts /wp-admin/edit.php3.39 ▲0.0451.46 ▲6.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.86 ▼2.97
Media Library /wp-admin/upload.php3.26 ▲0.0336.07 ▼1.91
YaBlog /wp-admin/options-general.php?page=yablog_settings_disabler3.2433.18

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for YaBlog
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲6213.22 ▼1.161.66 ▼0.4342.94 ▼3.37
Dashboard /wp-admin2,228 ▲405.85 ▲0.8097.02 ▼11.6175.22 ▲30.72
Posts /wp-admin/edit.php2,114 ▲281.98 ▼0.0638.36 ▲3.7332.33 ▼0.23
Add New Post /wp-admin/post-new.php1,684 ▲14922.61 ▼0.66632.46 ▼48.8466.74 ▲1.33
Media Library /wp-admin/upload.php1,407 ▲164.22 ▲0.0498.17 ▼5.3070.35 ▲24.69
YaBlog /wp-admin/options-general.php?page=yablog_settings_disabler9182.0224.8626.17

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/yablog/yablog.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/yablog/settings_page.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === yablog === )
The official readme.txt is a good inspiration

yablog/yablog.php Passed 13 tests

"YaBlog" version 1.6.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
130 characters long description:
Allows administrators to globally disable XML-RPC, new emoji functionality in WordPress 4.2, wp generator and feeds on their site.

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 detected487 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File37272250
PHP33827237

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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 functions14100.00%
▷ Anonymous functions00.00%
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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.65KB0.73KB0.00%