84% dekabotann

Code Review | dekabotann

WordPress plugin dekabotann scored84%from 54 tests.

About plugin

  • Plugin page: dekabotann
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4
  • WordPress version: 6.3.1
  • First release: Oct 6, 2012
  • Latest release: Oct 6, 2012
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: kazunii (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,269 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 gracefully, with no errors

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

Analyzing server-side resources used by dekabotann
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.12 ▼2.63
Dashboard /wp-admin3.31 ▲0.0154.88 ▲6.36
Posts /wp-admin/edit.php3.36 ▲0.0149.09 ▼3.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.68 ▼24.51
Media Library /wp-admin/upload.php3.24 ▲0.0141.39 ▲7.58

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for dekabotann
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.22 ▼1.156.00 ▲4.0343.55 ▼6.99
Dashboard /wp-admin2,206 ▲214.85 ▼1.18103.23 ▼10.3240.33 ▼3.59
Posts /wp-admin/edit.php2,089 ▲182.03 ▲0.0438.64 ▼3.8334.01 ▼6.42
Add New Post /wp-admin/post-new.php1,535 ▲2123.06 ▲5.43655.84 ▼7.2849.59 ▼6.43
Media Library /wp-admin/upload.php1,391 ▲34.28 ▲0.06101.43 ▼7.3644.66 ▲0.29

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

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
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dekabotann/dekabotann.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 your attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Screenshot #1 (/tags/0.1.2/screenshot1.png) image required
You can take inspiration from this readme.txt

dekabotann/dekabotann.php Passed 13 tests

"dekabotann" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
twitter・facebook・はてブ・google+のでかいボタンです。

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182141

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
tags/0.1.2/screenshot1.png10.58KB5.95KB▼ 43.70%