79% pageapp

Code Review | PageApp

WordPress plugin PageApp scored79%from 54 tests.

About plugin

  • Plugin page: pageapp
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2019
  • Latest release: Nov 28, 2023
  • Number of updates: 38
  • Update frequency: every 42.2 days
  • Top authors: jamesdlow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.48MB] [CPU: ▼15.64ms] Passed 4 tests

This is a short check of server-side resources used by PageApp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1339.28 ▼10.83
Dashboard /wp-admin3.49 ▲0.1853.17 ▲1.36
Posts /wp-admin/edit.php3.60 ▲0.2450.33 ▼0.64
Add New Post /wp-admin/post-new.php3.48 ▼2.4138.30 ▼52.46
Media Library /wp-admin/upload.php3.41 ▲0.1836.42 ▲1.96
Roku /wp-admin/admin.php?page=pageapp-roku3.3836.61
Post Meta /wp-admin/admin.php?page=pageapp-meta3.3832.11
Fire TV /wp-admin/admin.php?page=pageapp-fire-tv3.3833.47
PageApp /wp-admin/admin.php?page=pageapp3.3632.22

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
pa_version
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

PageApp: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8314.54 ▲0.291.86 ▲0.0835.72 ▼7.88
Dashboard /wp-admin2,213 ▲335.52 ▼0.1191.23 ▼1.9868.44 ▲29.70
Posts /wp-admin/edit.php2,133 ▲301.96 ▲0.0138.88 ▲0.2533.77 ▼3.90
Add New Post /wp-admin/post-new.php1,567 ▲4123.26 ▲0.24740.83 ▲45.2356.28 ▼5.73
Media Library /wp-admin/upload.php1,433 ▲424.18 ▼0.0392.55 ▼12.4870.46 ▲26.16
Roku /wp-admin/admin.php?page=pageapp-roku1,0572.0130.9623.73
Post Meta /wp-admin/admin.php?page=pageapp-meta8632.0829.2829.25
Fire TV /wp-admin/admin.php?page=pageapp-fire-tv9222.0627.1124.98
PageApp /wp-admin/admin.php?page=pageapp9352.0727.2327.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • pa_version
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pageapp
    • > Notice in wp-content/plugins/pageapp/inc/settingslib.php+122
    Undefined property: stdClass::$description

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pageapp/pageapp.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pageapp/pageapp-json.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: rest api, api, post meta, post, meta...

pageapp/pageapp.php Passed 13 tests

"PageApp" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Extensions to Wordpress wp-json for the PageApp API and mobile framework

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
Success! There were no dangerous files found in this plugin1,668 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9671401,665
CSS1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity30.67
▷ Minimum class complexity6.00
▷ Maximum class complexity62.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods161
▷ Static methods7345.34%
▷ Public methods14891.93%
▷ Protected methods106.21%
▷ Private methods31.86%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/pageapp20.png6.27KB0.88KB▼ 85.95%