84% wp-academic-publications

Code Review | WP Academic Publications

WordPress plugin WP Academic Publications scored84%from 54 tests.

About plugin

  • Plugin page: wp-academic-publi...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2012
  • Latest release: Mar 21, 2014
  • Number of updates: 7
  • Update frequency: every 63.7 days
  • Top authors: BMan12 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /3,140 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▲2.63ms] Passed 4 tests

This is a short check of server-side resources used by WP Academic Publications
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1351.90 ▲11.02
Dashboard /wp-admin3.45 ▲0.1456.18 ▲4.24
Posts /wp-admin/edit.php3.55 ▲0.1964.32 ▲12.47
Add New Post /wp-admin/post-new.php6.03 ▲0.1592.04 ▼13.27
Media Library /wp-admin/upload.php3.35 ▲0.1243.10 ▲8.53
Publication Categories /wp-admin/edit-tags.php?taxonomy=publication-category&post_type=publication3.3746.63
All Publications /wp-admin/edit.php?post_type=publication3.4047.22
Add New /wp-admin/post-new.php?post_type=publication3.4354.99

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Academic Publications
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲20314.61 ▲0.301.99 ▲0.3644.67 ▲2.85
Dashboard /wp-admin2,367 ▲1906.23 ▲0.59113.07 ▲22.6537.49 ▼4.80
Posts /wp-admin/edit.php2,297 ▲1943.43 ▲1.4655.25 ▲18.0833.43 ▼2.14
Add New Post /wp-admin/post-new.php1,556 ▲3022.99 ▲5.39646.02 ▼54.7035.67 ▼22.35
Media Library /wp-admin/upload.php1,435 ▲324.16 ▼0.1386.96 ▼16.6744.48 ▼2.74
Publication Categories /wp-admin/edit-tags.php?taxonomy=publication-category&post_type=publication1,5023.1946.9632.84
All Publications /wp-admin/edit.php?post_type=publication1,2753.3845.0729.12
Add New /wp-admin/post-new.php?post_type=publication1,9943.6563.4336.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-academic-publications/wpap-publication.php:79
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-academic-publications/main.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

wp-academic-publications/main.php 92% from 13 tests

The main PHP file in "WP Academic Publications" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-academic-publications.php" instead of "main.php")

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
Everything looks great! No dangerous files found in this plugin312 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP310763297
JavaScript16015

PHP code Passed 2 tests

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

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin