84% pixelo

Code Review | Pixelo

WordPress plugin Pixelo scored84%from 54 tests.

About plugin

  • Plugin page: pixelo
  • Plugin version: 0.0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 5, 2021
  • Latest release: Apr 6, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: engramium (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /321 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.68ms] Passed 4 tests

This is a short check of server-side resources used by Pixelo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.32 ▼4.11
Dashboard /wp-admin3.31 ▼0.0448.68 ▼18.61
Posts /wp-admin/edit.php3.36 ▲0.0048.40 ▼3.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.01 ▼16.36
Media Library /wp-admin/upload.php3.24 ▲0.0034.85 ▼2.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Pixelo: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.74 ▲0.372.43 ▲0.7141.27 ▲0.79
Dashboard /wp-admin2,198 ▲185.58 ▼0.0391.51 ▲2.4741.56 ▲1.42
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0838.61 ▼1.5234.78 ▼1.42
Add New Post /wp-admin/post-new.php1,526 ▼123.26 ▲0.15606.01 ▼52.9353.14 ▼13.66
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.0498.05 ▼0.6345.99 ▼1.68

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pixelo/pixelo.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: darkmode, nighttheme

pixelo/pixelo.php Passed 13 tests

Analyzing the main PHP file in "Pixelo" version 0.0.0.1
82 characters long description:
This plugin will enable dark mode to your WordPress website just by activating it.

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 detected35 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14017
PHP161012
CSS1006

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin