84% jurassic-login

Code Review | Jurassic Login

WordPress plugin Jurassic Login scored 84% from 54 tests.

About plugin

  • Plugin page: jurassic-login
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Oct 24, 2018
  • Number of updates: 10
  • Update frequency: every 136.5 days
  • Top authors: screenres (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 895 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.34ms] Passed 4 tests

Analyzing server-side resources used by Jurassic Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.39 ▼1.50
Dashboard /wp-admin3.31 ▲0.0141.99 ▼5.76
Posts /wp-admin/edit.php3.36 ▲0.0042.37 ▲1.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0081.93 ▼12.10
Media Library /wp-admin/upload.php3.24 ▲0.0040.52 ▲5.90

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Jurassic Login
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.66 ▼1.157.05 ▲5.1640.64 ▼3.06
Dashboard /wp-admin2,206 ▲184.89 ▲0.04112.15 ▼3.2339.46 ▼8.16
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0539.37 ▼1.4934.75 ▼1.50
Add New Post /wp-admin/post-new.php1,514 ▼2017.38 ▼3.78660.42 ▼25.0552.05 ▲1.91
Media Library /wp-admin/upload.php1,385 ▼04.19 ▼0.0199.12 ▼28.3153.22 ▲2.98

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 items
  • 1× 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/jurassic-login/jurassic-login.php:35

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 Passed 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
3 plugin tags: jurassic park, admin, login error

jurassic-login/jurassic-login.php Passed 13 tests

"Jurassic Login" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
135 characters long description:
Just for fun we'll add Jurassic Park 'You Didn't Say The Magic Word' message when a login failure happens. This plugin has no settings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131913

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin