84% default-theme-pages

Code Review | Default Theme Pages

WordPress plugin Default Theme Pages scored84%from 54 tests.

About plugin

  • Plugin page: default-theme-pages
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 6.3.1
  • First release: Jun 18, 2012
  • Latest release: Aug 30, 2012
  • Number of updates: 17
  • Update frequency: every 4.3 days
  • Top authors: carlos_a_sanz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,937 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
Install script ran successfully

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

Server-side resources used by Default Theme Pages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.15 ▲0.87
Dashboard /wp-admin3.34 ▲0.0054.21 ▼9.45
Posts /wp-admin/edit.php3.40 ▲0.0450.57 ▲0.68
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.62 ▼16.90
Media Library /wp-admin/upload.php3.27 ▲0.0442.23 ▲7.58

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Default Theme Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7114.35 ▲0.012.44 ▲0.6541.14 ▼2.01
Dashboard /wp-admin2,198 ▲215.62 ▲0.0891.57 ▼1.8337.21 ▼2.30
Posts /wp-admin/edit.php2,103 ▼02.01 ▼0.0141.50 ▼0.6934.74 ▼5.87
Add New Post /wp-admin/post-new.php1,539 ▲1323.05 ▼0.60670.24 ▼29.1868.29 ▲15.59
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.02111.12 ▼0.8549.36 ▲4.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/default-theme-pages/default-theme-pages.php:75

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Admin pages list)
The official readme.txt might help

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

Analyzing the main PHP file in "Default Theme Pages" version 0.4
52 characters long description:
adds unremovable default pages for templating themes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin219 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1113133219

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/padlock-icon.png1.12KB0.36KB▼ 68.21%
assets/images/gear-icon.png1.81KB1.06KB▼ 41.54%
screenshot-1.png47.47KB19.77KB▼ 58.36%