84% theme-pages

Code Review | Theme Pages

WordPress plugin Theme Pages scored84%from 54 tests.

About plugin

  • Plugin page: theme-pages
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2015
  • Latest release: Mar 14, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: stevenbailey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /769 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.75ms] Passed 4 tests

A check of server-side resources used by Theme Pages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.22 ▼2.76
Dashboard /wp-admin3.33 ▲0.0348.53 ▼3.53
Posts /wp-admin/edit.php3.38 ▲0.0251.99 ▲4.19
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.82 ▼8.32
Media Library /wp-admin/upload.php3.25 ▲0.0241.01 ▲3.61
All Theme Pages /wp-admin/edit.php?post_type=theme-page3.3268.50
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=theme-page3.2438.52
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=theme-page3.2537.06
Add New /wp-admin/post-new.php?post_type=theme-page3.3049.64

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
category_children
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Theme Pages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.76 ▲0.401.67 ▼0.9543.55 ▼4.67
Dashboard /wp-admin2,233 ▲565.57 ▼0.1081.75 ▼17.7640.58 ▼4.16
Posts /wp-admin/edit.php2,138 ▲382.00 ▲0.0036.91 ▼3.4636.52 ▲5.15
Add New Post /wp-admin/post-new.php1,555 ▲2723.22 ▲0.19676.25 ▼17.4950.28 ▼11.15
Media Library /wp-admin/upload.php1,435 ▲354.26 ▲0.16107.69 ▼4.2148.92 ▲0.40
All Theme Pages /wp-admin/edit.php?post_type=theme-page1,1451.9735.9330.44
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=theme-page1,4902.1327.3534.73
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=theme-page1,3512.1226.9930.12
Add New /wp-admin/post-new.php?post_type=theme-page1,7202.7660.7353.51

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • category_children
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/theme-pages/inc/post-type.php
    • > /wp-content/plugins/theme-pages/inc/templates.php
    • > /wp-content/plugins/theme-pages/theme-pages.php
    • > /wp-content/plugins/theme-pages/inc/mata-boxes.php
    • > /wp-content/plugins/theme-pages/inc/functions.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (https://steven-bailey.com/repository/wordpress/theme-pages/theme-pages.jpg)
Please take inspiration from this readme.txt

theme-pages/theme-pages.php Passed 13 tests

The principal PHP file in "Theme Pages" v. 1.1 is loaded by WordPress automatically on each request
122 characters long description:
Provide custom pages for your blog through automatically mapped theme templates. Great for custom HTML and static content!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected173 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP54923173

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin