84% blog-pages-sitemap

Code Review | Blog Pages Sitemap

WordPress plugin Blog Pages Sitemap scored84%from 54 tests.

About plugin

  • Plugin page: blog-pages-sitemap
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 8, 2021
  • Latest release: Apr 19, 2021
  • Number of updates: 4
  • Update frequency: every 3.3 days
  • Top authors: john1302 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.46ms] Passed 4 tests

A check of server-side resources used by Blog Pages Sitemap
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1337.90 ▲1.86
Dashboard /wp-admin3.44 ▲0.0944.62 ▼13.78
Posts /wp-admin/edit.php3.55 ▲0.1946.13 ▼2.71
Add New Post /wp-admin/post-new.php6.02 ▲0.1391.58 ▼10.86
Media Library /wp-admin/upload.php3.36 ▲0.1335.52 ▲1.53
WP Pages Sitemap /wp-admin/options-general.php?page=pages-sitemap-settings3.3331.69

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

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

Browser metrics Passed 4 tests

Blog Pages Sitemap: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.071.89 ▲0.4442.12 ▲6.73
Dashboard /wp-admin2,202 ▲275.61 ▼0.1082.36 ▼17.9238.32 ▼8.08
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0840.95 ▲0.4336.50 ▼2.46
Add New Post /wp-admin/post-new.php1,537 ▲218.26 ▼4.83604.22 ▼6.7062.36 ▲11.45
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0199.10 ▲3.4143.57 ▲3.14
WP Pages Sitemap /wp-admin/options-general.php?page=pages-sitemap-settings8162.0424.5629.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • c4601a0c4a53fc695582736ba26c6e84
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function PageSitemap\\site_url() in wp-content/plugins/blog-pages-sitemap/classes/PagesSitemapCronSchedule.php:209

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 Passed 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: pages, sitemap, cron event, back

blog-pages-sitemap/blog-pages-sitemap.php Passed 13 tests

The main PHP script in "Blog Pages Sitemap" version 0.0.2 is automatically included on every request by WordPress
48 characters long description:
Create sitemap for blog pages with cron schedule

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 plugin717 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10157160716
JSON1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods1327.08%
▷ Public methods4389.58%
▷ Protected methods00.00%
▷ Private methods510.42%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin