84% child-page-by-atlas

Code Review | Child page by Atlas

WordPress plugin Child page by Atlas scored84%from 54 tests.

About plugin

  • Plugin page: child-page-by-atlas
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 18, 2020
  • Latest release: Jul 18, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: atlas89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /322 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
This plugin's installer ran successfully

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

A check of server-side resources used by Child page by Atlas
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0239.82 ▼4.23
Dashboard /wp-admin3.37 ▼0.0248.94 ▼16.40
Posts /wp-admin/edit.php3.42 ▲0.0246.23 ▼8.01
Add New Post /wp-admin/post-new.php5.95 ▲0.0294.94 ▼16.90
Media Library /wp-admin/upload.php3.29 ▲0.0236.30 ▼4.34

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_atl_sub_page

Browser metrics Passed 4 tests

A check of browser resources used by Child page by Atlas
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.24 ▲0.091.80 ▼0.1641.62 ▼4.45
Dashboard /wp-admin2,192 ▲185.54 ▼0.0689.19 ▲0.7039.75 ▼4.16
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0835.11 ▼1.4638.62 ▲0.25
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.13660.05 ▼21.4649.64 ▼4.53
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.1097.81 ▼19.8346.16 ▼4.88

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_atl_sub_page
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/child-page-by-atlas/wp-atl-sub-page.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: child page by atlas

child-page-by-atlas/wp-atl-sub-page.php 85% from 13 tests

This is the main PHP file of "Child page by Atlas" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("child-page-by-atlas.php" instead of "wp-atl-sub-page.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 plugin109 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1142679
PO File181330

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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