90% slim-wp

Code Review | Slim WordPress

WordPress plugin Slim WordPress scored90%from 54 tests.

About plugin

  • Plugin page: slim-wp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8
  • WordPress version: 6.3.1
  • First release: Aug 4, 2017
  • Latest release: Aug 4, 2017
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: ggriesser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /759 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Slim WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.44 ▲1.79
Dashboard /wp-admin3.35 ▲0.0148.99 ▼15.32
Posts /wp-admin/edit.php3.46 ▲0.1149.53 ▲0.14
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.28 ▼20.61
Media Library /wp-admin/upload.php3.27 ▲0.0538.30 ▲0.31

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Slim WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.35 ▼0.201.66 ▼0.3542.19 ▲1.13
Dashboard /wp-admin2,213 ▲365.63 ▼0.0785.28 ▼7.5687.92 ▲48.51
Posts /wp-admin/edit.php2,115 ▲151.97 ▲0.0236.88 ▼4.7833.23 ▼8.05
Add New Post /wp-admin/post-new.php1,553 ▲2623.04 ▲0.03697.77 ▲31.40107.82 ▲56.86
Media Library /wp-admin/upload.php1,415 ▲184.14 ▼0.1099.28 ▼27.1974.11 ▲25.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 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:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

slim-wp/slim-wp.php Passed 13 tests

The entry point to "Slim WordPress" version 1.0.0 is a PHP file that has certain tags in its header comment area
67 characters long description:
Send your site on a diet and remove unnecessary WordPress features!

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
Success! There were no dangerous files found in this plugin59,152 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript598543,31458,796
PHP77636263
SVG10067
Markdown113026

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.19
Average class complexity3.20
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods25
▷ Static methods1976.00%
▷ Public methods2184.00%
▷ Protected methods00.00%
▷ Private methods416.00%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
angular/backend/dist/assets/slim-wp-ohne.png15.68KB5.79KB▼ 63.08%
angular/backend/dist/assets/fast-wp-ohne.png11.91KB6.01KB▼ 49.52%
img/velocious-logo-yellow.png0.75KB0.72KB▼ 3.93%
img/smart-wp-ohne.png10.90KB5.14KB▼ 52.82%
img/fast-wp-ohne.png11.91KB6.01KB▼ 49.52%