84% orbisius-snippets

Code Review | Orbisius Snippets

WordPress plugin Orbisius Snippets scored84%from 54 tests.

About plugin

  • Plugin page: orbisius-snippets
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Oct 28, 2017
  • Latest release: Aug 28, 2018
  • Number of updates: 12
  • Update frequency: every 25.4 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by Orbisius Snippets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0343.93 ▼2.64
Dashboard /wp-admin3.38 ▲0.0348.70 ▼8.34
Posts /wp-admin/edit.php3.43 ▲0.0351.20 ▲0.66
Add New Post /wp-admin/post-new.php5.96 ▲0.0390.90 ▼5.77
Media Library /wp-admin/upload.php3.30 ▲0.0337.28 ▼1.69
Orbisius Snippets /wp-admin/options-general.php?page=orbisius_snippets_snippetsoptions3.2734.50

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Orbisius Snippets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.28 ▲0.131.71 ▼0.4843.12 ▼0.25
Dashboard /wp-admin2,196 ▲165.65 ▼0.0192.36 ▼0.3042.51 ▲2.18
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0439.98 ▲2.5636.32 ▼2.18
Add New Post /wp-admin/post-new.php1,531 ▲323.04 ▲0.01680.25 ▼9.4762.81 ▲4.76
Media Library /wp-admin/upload.php1,401 ▲44.21 ▼0.02105.10 ▼8.8548.12 ▲0.91
Orbisius Snippets /wp-admin/options-general.php?page=orbisius_snippets_snippetsoptions8411.9924.9432.20

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 does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-snippets/orbisius-snippets.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (n/a)
You can take inspiration from this readme.txt

orbisius-snippets/orbisius-snippets.php Passed 13 tests

The principal PHP file in "Orbisius Snippets" v. 1.0.4 is loaded by WordPress automatically on each request
30 characters long description:
Simple way to include snippets

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin166 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14666166

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin