83% monkey-in-silk

Code Review | Monkey in Silk

WordPress plugin Monkey in Silk scored83%from 54 tests.

About plugin

  • Plugin page: monkey-in-silk
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 26, 2020
  • Latest release: Aug 26, 2020
  • Number of updates: 10
  • Update frequency: every 0.7 days
  • Top authors: qrisse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /290 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.85ms] Passed 4 tests

Analyzing server-side resources used by Monkey in Silk
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.19 ▲0.44
Dashboard /wp-admin3.38 ▲0.0357.69 ▼5.92
Posts /wp-admin/edit.php3.43 ▲0.0751.67 ▼3.69
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.05 ▼22.23
Media Library /wp-admin/upload.php3.30 ▲0.0739.64 ▲1.10

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Monkey in Silk
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.61 ▲0.261.71 ▲0.0445.48 ▲3.79
Dashboard /wp-admin2,221 ▲415.53 ▼0.1488.21 ▼5.3939.29 ▼8.18
Posts /wp-admin/edit.php2,129 ▲262.01 ▼0.0336.13 ▼5.5432.77 ▼7.87
Add New Post /wp-admin/post-new.php1,539 ▲823.57 ▲0.44690.48 ▲31.0145.82 ▼6.59
Media Library /wp-admin/upload.php1,426 ▲234.14 ▼0.03111.07 ▲8.4648.27 ▼0.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monkey-in-silk/includes/monkeyinsilk-menus.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monkey-in-silk/includes/monkeyinsilk-settings-fields.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/monkey-in-silk/includes/monkeyinsilk-shortcodes.php:43

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% 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 your attention:
  • Screenshots: Screenshot #2 (Homestyler where the user can select between between a furnished and empty kitchen.) image required
The official readme.txt might help

monkey-in-silk/monkeyinsilk.php 77% from 13 tests

The main PHP script in "Monkey in Silk" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("monkey-in-silk.php" instead of "monkeyinsilk.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 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected267 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP56930267

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected