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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼161.37ms] Passed 4 tests
Analyzing server-side resources used by Academa
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 35.00 ▼0.26 |
Dashboard /wp-admin | 3.08 ▲0.03 | 45.70 ▼2.58 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 49.06 ▲3.37 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 90.48 ▼643.19 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 34.48 ▲0.55 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=publication | 3.02 | 32.02 |
All Publications /wp-admin/edit.php?post_type=publication | 3.07 | 41.09 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=publication | 3.02 | 41.61 |
Add New /wp-admin/post-new.php?post_type=publication | 3.24 | 52.13 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
category_children |
Browser metrics Passed 4 tests
Checking browser requirements for Academa
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,899 ▲327 | 16.72 ▲1.08 | 27.56 ▲14.68 | 46.18 ▼6.38 |
Dashboard /wp-admin | 3,020 ▲86 | 5.93 ▼0.03 | 138.38 ▼10.76 | 119.39 ▼1.73 |
Posts /wp-admin/edit.php | 2,786 ▲47 | 2.71 ▼0.00 | 66.23 ▼6.44 | 97.18 ▲3.53 |
Add New Post /wp-admin/post-new.php | 1,529 ▲29 | 18.85 ▲0.08 | 401.92 ▼3.75 | 117.35 ▲2.24 |
Media Library /wp-admin/upload.php | 1,854 ▲47 | 5.02 ▼0.00 | 146.95 ▼7.22 | 127.27 ▲1.91 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=publication | 1,873 | 2.52 | 64.20 | 78.26 |
All Publications /wp-admin/edit.php?post_type=publication | 1,507 | 2.63 | 64.97 | 83.65 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=publication | 1,957 | 2.41 | 64.89 | 96.20 |
Add New /wp-admin/post-new.php?post_type=publication | 2,275 | 3.51 | 94.34 | 105.60 |
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 1 option in the database
- category_children
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/academa/academa.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/academa/templates/archive-publication.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/academa/templates/single-publication.php:6
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: bibtex, academic
academa/academa.php Passed 13 tests
Analyzing the main PHP file in "Academa" version 0.1
86 characters long description:
Custom post types targetted towards showing an academic profile on a Wordpress website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,503 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 96 | 111 | 3,349 |
PHP | 3 | 29 | 36 | 149 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon-256x256.png | 12.30KB | 11.45KB | ▼ 6.91% |
icon-128x128.png | 4.68KB | 4.45KB | ▼ 4.92% |