84% insector

Code Review | Bug - fly on the screen

WordPress plugin Bug - fly on the screen scored84%from 54 tests.

About plugin

  • Plugin page: insector
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.7
  • WordPress version: 6.3.1
  • First release: Jul 16, 2015
  • Latest release: Dec 31, 2016
  • Number of updates: 5
  • Update frequency: every 106.8 days
  • Top authors: Kubitomakita (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

70+ active /2,513 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.00MB] [CPU: ▼3.38ms] Passed 4 tests

Analyzing server-side resources used by Bug - fly on the screen
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.68 ▼0.57
Dashboard /wp-admin3.31 ▲0.0053.62 ▼6.83
Posts /wp-admin/edit.php3.36 ▲0.0050.05 ▼0.99
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.63 ▼5.12
Media Library /wp-admin/upload.php3.23 ▲0.0038.54 ▲1.91

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Bug - fly on the screen
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.40 ▲0.043.53 ▲1.2243.52 ▼1.57
Dashboard /wp-admin2,198 ▲215.56 ▼0.0591.27 ▼9.7043.44 ▼0.28
Posts /wp-admin/edit.php2,103 ▼01.97 ▲0.0236.29 ▼0.0736.06 ▲1.60
Add New Post /wp-admin/post-new.php1,526 ▼223.16 ▼0.12673.60 ▲10.9369.11 ▲14.17
Media Library /wp-admin/upload.php1,403 ▼04.18 ▲0.01104.56 ▲8.5946.14 ▲3.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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/insector/bug.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: easter egg, fly, insect, bug

insector/bug.php 92% from 13 tests

Analyzing the main PHP file in "Bug - fly on the screen" version 1.0
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("insector.php" instead of "bug.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
Good job! No executable or dangerous file extensions detected43 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10534
PHP110219

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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
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
fly-sprite.png6.93KB3.14KB▼ 54.67%