84% skeletonisr

Code Review | Skeletonisr

WordPress plugin Skeletonisr scored84%from 54 tests.

About plugin

  • Plugin page: skeletonisr
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 1.1-3.4
  • WordPress version: 6.3.1
  • First release: Oct 22, 2012
  • Latest release: Oct 23, 2012
  • Number of updates: 11
  • Update frequency: every 1.0 days
  • Top authors: drbirkett (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,304 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.80ms] Passed 4 tests

An overview of server-side resources used by Skeletonisr
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.39 ▼0.68
Dashboard /wp-admin3.34 ▲0.0449.99 ▼2.41
Posts /wp-admin/edit.php3.39 ▲0.0351.98 ▼3.24
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.22 ▼8.87
Media Library /wp-admin/upload.php3.26 ▲0.0341.02 ▲8.33

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Skeletonisr
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.22 ▼1.236.00 ▲4.3339.56 ▲0.36
Dashboard /wp-admin2,209 ▲215.88 ▲0.0099.25 ▼9.2740.47 ▼0.26
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0140.44 ▼1.6237.10 ▼2.24
Add New Post /wp-admin/post-new.php1,519 ▼923.28 ▲0.17682.23 ▲17.5155.24 ▼6.79
Media Library /wp-admin/upload.php1,385 ▼34.22 ▼0.00100.21 ▼5.1145.93 ▲2.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • 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
Even though no errors were found, 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/skeletonisr/skeletonisr.class.php:58

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === skeletonisr === )
Please take inspiration from this readme.txt

skeletonisr/skeletonisr.class.php 92% from 13 tests

The main file in "Skeletonisr" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("skeletonisr.php" instead of "skeletonisr.class.php")

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
There were no executable files found in this plugin539 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS378118373
PHP14260120
Markdown114029
PO File11017

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Skeleton/images/apple-touch-icon.png2.41KB1.51KB▼ 37.18%
Skeleton/images/apple-touch-icon-72x72.png3.78KB2.49KB▼ 34.27%
Skeleton/images/apple-touch-icon-114x114.png9.88KB3.79KB▼ 61.59%