Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼4.96ms] Passed 4 tests
A check of server-side resources used by MongoLantern WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 41.28 ▼18.94 |
Dashboard /wp-admin | 3.68 ▲0.37 | 55.73 ▲3.54 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 56.28 ▲3.10 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 100.36 ▼7.51 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 41.80 ▲3.51 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MongoLantern WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲26 | 13.23 ▼1.50 | 1.79 ▼0.51 | 42.56 ▼5.50 |
Dashboard /wp-admin | 2,209 ▲3 | 5.89 ▲0.08 | 98.89 ▼0.72 | 71.36 ▲23.56 |
Posts /wp-admin/edit.php | 2,110 ▲18 | 2.02 ▲0.02 | 39.61 ▲1.16 | 35.15 ▲5.17 |
Add New Post /wp-admin/post-new.php | 1,681 ▲148 | 22.36 ▼0.74 | 727.63 ▲66.79 | 51.19 ▼2.39 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.19 ▼0.07 | 102.91 ▼16.49 | 74.30 ▲26.53 |
Uninstaller [IO: ▲0.13MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attentionZombie WordPress options detected upon uninstall: 6 options
- Uninstaller has failed for this plugin, leaving 36 files (0.13MB) in the plugin directory
- (new file) lib/MongoLantern/Interfaces/MongoLanternInterfaces.php
- (new file) lib/MongoLantern/Field/MongoLanternField.php
- (new file) lib/MongoLantern/Interfaces/MongoLanternDocumentInterface.php
- (new file) lib/MongoLantern/Interfaces/MongoLanternFieldInterface.php
- (new file) lib/MongoLantern/Indexer/MongoLanternIndexer.php
- (new file) lib/MongoLantern/Interfaces/MongoLanternIndexerInterface.php
- (new file) README.txt
- (new file) lib/MongoLantern/Document/MongoLanternDocument.php
- (new file) lib/MongoLantern/Benchmark/MongoLanternBenchmark.php
- (new file) lib/MongoLantern/Interfaces/MongoLanternQueryInterface.php
- ...
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% 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)
Good news, no errors were detected
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
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mongolantern/settings.php
- > /wp-content/plugins/mongolantern/uninstall.php
- > /wp-content/plugins/mongolantern/reindex.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mongolantern/mongolantern.php:12
- > PHP Fatal error
Uncaught Error: Class 'MongoLanternBase' not found in wp-content/plugins/mongolantern/lib/MongoLantern/Utility/MongoLanternStats.php:38
- > PHP Fatal error
require_once(): Failed opening required 'MONGOLANTERN_BASEPATHUtility/MongoLanternVariableHandler.php' (include_path='.:/usr/share/php') in wp-content/plugins/mongolantern/lib/MongoLantern/Loader.php on line 42
- > PHP Fatal error
Uncaught Error: Interface 'MongoLanternIndexCSVInterface' not found in wp-content/plugins/mongolantern/lib/MongoLantern/ThirdParty/CSV/MongoLanternIndexCSV.php:38
- > PHP Fatal error
Uncaught Error: Class 'MongoLanternBase' not found in wp-content/plugins/mongolantern/lib/MongoLantern/Query/MongoLanternQueryParser.php:39
- > PHP Fatal error
Uncaught Error: Class 'MongoLanternBase' not found in wp-content/plugins/mongolantern/lib/MongoLantern/Field/MongoLanternField.php:38
- > PHP Warning
Use of undefined constant MONGOLANTERN_BASEPATH - assumed 'MONGOLANTERN_BASEPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mongolantern/lib/MongoLantern/Loader.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'MongoLanternBase' not found in wp-content/plugins/mongolantern/lib/MongoLantern/Indexer/MongoLanternIndexer.php:38
- > PHP Warning
require_once(MONGOLANTERN_BASEPATHUtility/MongoLanternVariableHandler.php): failed to open stream: No such file or directory in wp-content/plugins/mongolantern/lib/MongoLantern/Loader.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'MongoLanternBase' not found in wp-content/plugins/mongolantern/lib/MongoLantern/Document/MongoLanternDocument.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
5 plugin tags: mongolantern, mongolantern wordpress, mongodb fulltext search engine, open source search server, wordpress fulltext search
mongolantern/mongolantern.php 85% from 13 tests
The primary PHP file in "MongoLantern WP" version 1.0.1 - alpha... is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1.0.1 - alpha...")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)
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,770 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 660 | 1,334 | 1,770 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 15.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 129 | |
▷ Static methods | 22 | 17.05% |
▷ Public methods | 118 | 91.47% |
▷ Protected methods | 5 | 3.88% |
▷ Private methods | 6 | 4.65% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/logo (copy).png | 2.99KB | 1.92KB | ▼ 35.67% |
resources/images/logo.png | 0.63KB | 0.62KB | ▼ 1.40% |
resources/images/settings.png | 0.80KB | 0.67KB | ▼ 16.12% |