78% pageproofer

Code Review | PageProofer

WordPress plugin PageProofer scored78%from 54 tests.

About plugin

  • Plugin page: pageproofer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: May 20, 2020
  • Latest release: May 22, 2020
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: pageproofer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /731 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.46ms] Passed 4 tests

An overview of server-side resources used by PageProofer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.17 ▲7.08
Dashboard /wp-admin3.36 ▲0.0649.85 ▼5.01
Posts /wp-admin/edit.php3.48 ▲0.1250.93 ▲2.29
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.34 ▼10.65
Media Library /wp-admin/upload.php3.29 ▲0.0639.77 ▲3.53
PageProofer /wp-admin/options-general.php?page=pageproofer3.2332.11

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for PageProofer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.48 ▼0.101.97 ▲0.0743.61 ▼2.94
Dashboard /wp-admin2,210 ▲285.86 ▼0.01104.60 ▼6.4938.15 ▼7.36
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0234.23 ▼3.3935.47 ▼0.02
Add New Post /wp-admin/post-new.php1,537 ▲423.22 ▼0.04656.87 ▲10.7651.46 ▲5.52
Media Library /wp-admin/upload.php1,392 ▲44.30 ▲0.13109.80 ▲9.1845.85 ▼1.44
PageProofer /wp-admin/options-general.php?page=pageproofer8952.0125.4926.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • pageproofer_settings
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=pageproofer
    • > Notice in wp-content/plugins/pageproofer/admin/class-pageproofer-admin.php+135
    Undefined index: pageproofer_site_key

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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pageproofer/admin/partials/pageproofer-admin-display.php
    • > /wp-content/plugins/pageproofer/public/partials/pageproofer-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: feedback widget, website feedback, visual feedback, issue feedback, bug tracking

pageproofer/pageproofer.php 92% from 13 tests

The main PHP file in "PageProofer" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin329 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12143538254
SVG20269
JavaScript24546
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.14
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.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
4 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/pageproofer-square-logo.png1.61KB0.83KB▼ 48.27%
assets/banner-772-250.png38.73KB12.91KB▼ 66.68%
assets/banner-1544x500.png85.92KB27.38KB▼ 68.13%
assets/icon-128x128.png1.61KB0.83KB▼ 48.27%