84% son-of-clippy

Code Review | Son of Clippy

WordPress plugin Son of Clippy scored84%from 54 tests.

About plugin

  • Plugin page: son-of-clippy
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2014
  • Latest release: Dec 18, 2014
  • Number of updates: 6
  • Update frequency: every 137.7 days
  • Top authors: stevegrunwell (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

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

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

An overview of server-side resources used by Son of Clippy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.76 ▼3.74
Dashboard /wp-admin3.33 ▼0.0246.03 ▼12.50
Posts /wp-admin/edit.php3.38 ▲0.0249.05 ▼1.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.46 ▼3.84
Media Library /wp-admin/upload.php3.25 ▲0.0236.36 ▲2.59

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Son of Clippy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.51 ▼0.081.69 ▲0.0540.50 ▲0.63
Dashboard /wp-admin2,203 ▲154.86 ▼1.04110.02 ▼1.6942.63 ▲0.53
Posts /wp-admin/edit.php2,092 ▼01.97 ▼0.0839.10 ▲0.1334.87 ▼0.56
Add New Post /wp-admin/post-new.php1,528 ▲423.15 ▲2.08586.27 ▼45.2442.30 ▼11.91
Media Library /wp-admin/upload.php1,385 ▼64.22 ▼0.0491.89 ▼3.3044.74 ▲0.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at 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 plugin_dir_url() in wp-content/plugins/son-of-clippy/son_of_clippy.php:16

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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: nostalgia, novelty

son-of-clippy/son_of_clippy.php 85% from 13 tests

This is the main PHP file of "Son of Clippy" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("son-of-clippy.php" instead of "son_of_clippy.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,478 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34192881,362
PHP1155372
CSS291144

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin