10% prelauncher

Code Review | Prelaunchr for WordPress

WordPress plugin Prelaunchr for WordPress scored 10% from 54 tests.

About plugin

  • Plugin page: prelauncher
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 5.8.1
  • First release: Dec 1, 2015
  • Latest release: May 27, 2016
  • Number of updates: 19
  • Update frequency: every 9.4 days
  • Top authors: prelauncher (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,401 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/prelauncher/includes/prelauncher-settings.php+30
    Use of undefined constant TZ_TODO_FILE - assumed 'TZ_TODO_FILE' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.83MB] [CPU: ▼191.40ms] Passed 4 tests

This is a short check of server-side resources used by Prelaunchr for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼0.925.77 ▼18.92
Dashboard /wp-admin1.82 ▼1.249.13 ▼34.69
Posts /wp-admin/edit.php1.82 ▼1.296.36 ▼38.14
Add New Post /wp-admin/post-new.php1.82 ▼3.626.57 ▼660.50
Media Library /wp-admin/upload.php1.82 ▼1.195.10 ▼32.26
Prelauncher /wp-admin/options-general.php?page=prelauncher_options1.825.10

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 112 new files
Database: no new tables, 1 new option
New WordPress options
prelauncher-credentials

Browser metrics Passed 4 tests

Prelaunchr for WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.11 ▲0.148.14 ▼0.4250.13 ▼0.08
Dashboard /wp-admin2,978 ▲445.88 ▼0.04149.29 ▲10.60121.39 ▲13.40
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0074.14 ▲9.7693.32 ▼2.66
Add New Post /wp-admin/post-new.php1,686 ▲318.63 ▼0.07391.82 ▲4.63115.76 ▼0.31
Media Library /wp-admin/upload.php1,815 ▲55.03 ▼0.00150.37 ▼23.13118.46 ▼8.41
Prelauncher /wp-admin/options-general.php?page=prelauncher_options1,0592.0659.2379.61

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
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/prelauncher/includes/prelauncher-settings.php+30
    Use of undefined constant TZ_TODO_FILE - assumed 'TZ_TODO_FILE' (this will throw an Error in a future version of PHP)

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=prelauncher_options
    • > Warning in wp-content/plugins/prelauncher/includes/prelauncher-settings.php+30
    Use of undefined constant TZ_TODO_FILE - assumed 'TZ_TODO_FILE' (this will throw an Error in a future version of PHP)

SRP 0% 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
Almost there! Just fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/prelauncher/lib/httpful/examples/twitter.php
    • > /wp-content/plugins/prelauncher/lib/httpful/examples/showclix.php
    • > /wp-content/plugins/prelauncher/lib/httpful/examples/github.php
  • 31× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to get property 'created-at' of non-object in wp-content/plugins/prelauncher/lib/httpful/examples/github.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'RESTful\\Exceptions\\HTTPError' not found in wp-content/plugins/prelauncher/lib/prelauncher/src/Prelauncher/Errors/Error.php:7
    • > PHP Notice
      Trying to get property 'name' of non-object in wp-content/plugins/prelauncher/lib/httpful/examples/github.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/prelauncher/lib/httpful/src/Httpful/Handlers/XmlHandler.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RESTful\\Exceptions\\Base' not found in wp-content/plugins/prelauncher/lib/restful/src/RESTful/Exceptions/MultipleResultsFound.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/prelauncher/lib/httpful/examples/showclix.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/prelauncher/lib/httpful/src/Httpful/Handlers/CsvHandler.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/prelauncher/lib/httpful/examples/showclix.php on line 24
    • > PHP Notice
      Trying to get property 'event' of non-object in wp-content/plugins/prelauncher/lib/httpful/examples/showclix.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'RESTful\\Exceptions\\Base' not found in wp-content/plugins/prelauncher/lib/restful/src/RESTful/Exceptions/HTTPError.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: launch, referrals, pre-launch, prelaunchr, social...

prelauncher/prelauncher.php 92% from 13 tests

"Prelaunchr for WordPress" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 216 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected4,984 lines of code in 80 files:
LanguageFilesBlank linesComment linesLines of code
PHP627608963,134
CSS41828692
SVG100640
Markdown51610302
JavaScript1220105
JSON30082
XML21016
YAML20013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.14
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes57
▷ Abstract classes11.75%
▷ Concrete classes5698.25%
▷ Final classes11.79%
Methods318
▷ Static methods6721.07%
▷ Public methods29091.19%
▷ Protected methods103.14%
▷ Private methods185.66%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants46
▷ Global constants48.70%
▷ Class constants4291.30%
▷ Public constants42100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin